// 数据库的连接
const dbUserName = "epidemic";
const dbPassWord = "flying_dark_feather";
const targetDataBase = "epidemic";
//
const url = `mongodb://${dbUserName}:${dbPassWord}@8.136.14.176:2700/${targetDataBase}`;
const { MongoClient } = require("mongodb");
const client = new MongoClient(url);
connection = (async function () {
  await client.connect();
  return client.db("epidemic");
})();
function closeConnect() {
  client.close();
}
module.exports = { connection, closeConnect };
